package com.mcf.xiaolinju.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mcf.xiaolinju.vo.phoneReturn;
import com.mcf.xiaolinju.entity.Phone;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mcf
 * @since 2021-11-23
 */
public interface PhoneMapper extends BaseMapper<Phone> {
    //分页查询
    Page<phoneReturn> selectPhone(IPage<phoneReturn> page, int id);
    //修改
    Integer updateById(int id, String phone, String name, String work, int updateid, LocalDateTime time);
    //删除
    Integer del(int id,int updateid, LocalDateTime time);
    //批量删除 ,
    Integer delmany( Integer[] id ,int updateid, LocalDateTime time);
    //模糊查询
    Page<phoneReturn> selectPhonedim(IPage<phoneReturn> page, int id,String name,String work,String phonenum);
    //查询全部电话信息
    List<Phone> selectapi(int villageid,String workname);

}
